package com.example.myproject;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;

import com.example.bean.User;

public class SecondActivity extends AppCompatActivity {

    private User bundleSen;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second);

        Intent intent = getIntent();
        Bundle extra = intent.getExtras();

        this.bundleSen = extra.getParcelable("test");
        Log.i("tags", "新bundle--》" + bundleSen.getName());
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        bundleSen = null;
    }
}
